// Table 7. Liabilities by maturity
use "eseefirmlevel.dta", clear

local filename "table7"
xtivreg2 longratio crisis , fe  cluster(firmid indyear)  
outreg2  using "`filename'", word replace label dec(3) nocons addtext(Firm FEs, YES) 
xi: xtivreg2 longratio crisis  lnexpeu lnexpw lnvasp, fe  cluster(firmid indyear) 
outreg2   using "`filename'", word label dec(3) nocons addtext(Firm FEs, YES) 
xi: xtivreg2 longratio crisis inter domfir lnexpeu lnexpw lnvasp, fe  cluster(firmid indyear) 
outreg2   using "`filename'", word label dec(3) nocons addtext(Firm FEs, YES) keep(crisis inter  lnexpeu lnexpw lnvasp) 
xi: xtivreg2 longratio inter domfir i.year lnexpeu lnexpw lnvasp, fe partial(i.year) cluster(firmid indyear) 
outreg2 using "`filename'", word label dec(3) nocons addtext(Firm FEs, YES, Year FEs, YES) keep( inter lnexpeu lnexpw lnvasp )
xi: xtivreg2 longratio inter domfir i.indyear, fe partial(i.indyear) cluster(firmid indyear)
outreg2  using "`filename'", word label dec(3) nocons addtext(Firm FEs, YES, Year FEs, NO, Ind*year FEs, YES)  keep(inter)

